""" 
led灯闪烁
"""
from machine import Pin
import time

count = 0
led1=Pin(15,Pin.OUT)    #构建led1对象，GPIO15输出
while count < 10:
    led1.value(count%2)     #使IO15输出高低电平
    time.sleep(1)
    count += 1
    print("count = {}".format(count))